package com.example.smartcity_ikun3.logic.base

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment

abstract class BaseFragment : Fragment(){
    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        initEvent()
        initView()
        initData()
        getLayout()
        return super.onCreateView(inflater, container, savedInstanceState)
    }

    abstract fun getLayout() : Int

    abstract fun initData()

    abstract fun initView()

    abstract fun initEvent()
}